import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/global.less'

//导入axios
import axios from 'axios'
//配置根地址
axios.defaults.baseURL = 'http://big-event-vue-api-t.itheima.net'
//将axios实例挂载Vue.proto
Vue.prototype.$http = axios

//导入饿了吗
import ElementUI from 'element-ui';
//导入饿了吗样式
import 'element-ui/lib/theme-chalk/index.css';

//注册饿了吗
Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
